/**
 * Created by natalia on 09.10.14.
 */
public class Combination {

    private LEVELS kind;
    private Card rank;

    Combination(LEVELS kind, Card rank) {
        this.rank = rank;
        this.kind = kind;
    }

     enum LEVELS {
        NOTHING(0), PAIR(1), PAIRS(2), THREE_KINDS(3), STRAIGHT(4), FLUSH(5), FULL_HOUSE(6), FOUR_KINDS(7), STRAIGHT_FLUSH(8), ROYAL_FLUSH(9);
        private int val;

        private LEVELS(int i) {
            val = i;
        }

        public int getValue() {
            return val;
        }
     }
    public Card getRankCard() {
        return  this.rank;
    }
    public LEVELS getLevelOfCard() {
        return this.kind;
    }
}
